package com.fingard.dsp.bank.reqrespobj.balance.detail;

public class RetAtsBalDetail {
    /**
     * 民生银行现金池余额查询返回新增-start
     */
    //客户名称
    public String custName;
    //币种名称
    public String actCurName;
    //账户状态 0-新建，2-正常，3-注销
    public String acState;
    //开户行
    public String bankName;
    //开户行所在国家/地区
    public String countryName;
    /**
     * 民生银行现金池余额查询返回新增-end
     */

	// 账号地区区域码
    public String actArea;

    // 币种
    public String actCur;

    // 银行账号
    public String actNum;
	
    public String respCode;
    public String respInfo;
	
	
    public String currBal;
    public String availBal;
    
    /**冻结金额*/
    public String frozenBal;
    /**上日余额*/
    public String yesterdayBal;
    //public String ABCCurrentBal;
    /**最后交易日期**/
    public String lastTranDate;
    /**现金池余额*/
    public String cashPoolBal;
    /**现金池可用余额*/
    public String cashPoolAvailBal;

    /*
    public String ConvertToRetATS(Req7506BalQry p_req) throws Exception, IOException{
    	XmlTextWriter outputXmlWriter = new XmlTextWriter();
    	outputXmlWriter.writeStartDocument();
    	outputXmlWriter.writeStartElement("ATSYH");
    	outputXmlWriter.writeStartElement("TransResp");
    	outputXmlWriter.writeElementString("BankCode", p_req.bankCode);
    	outputXmlWriter.writeElementString("TransType", p_req.transType);
    	outputXmlWriter.writeElementString("TransSeqID", p_req.transSeqID);
    	outputXmlWriter.writeStartElement("TransParam");
    	
    	outputXmlWriter.writeElementString("RespCode", respCode);
    	outputXmlWriter.writeElementString("RespInfo", respInfo);
    	outputXmlWriter.writeElementString("ActArea", p_req.listReq7506.get(0).actArea);
    	outputXmlWriter.writeElementString("ActCur", actCur);
    	outputXmlWriter.writeElementString("ActNum", actNum);
		
    	outputXmlWriter.writeElementString("CurrBal", currBal);
    	outputXmlWriter.writeElementString("AvailBal", availBal);
    	outputXmlWriter.writeElementString("FrozenBal", frozenBal);
    	outputXmlWriter.writeElementString("LastTranDate", lastTranDate);
    	outputXmlWriter.writeEndDocument();
    	
    	return outputXmlWriter.toXmlString();
    }
    */
    
    /*
    public String ConvertToRetATS(Req7506BalQry p_req) throws Exception, IOException{
        	String tmpFileName = FGBiz.dspCenter.rootDirPath+File.separator+"PortFiles"+File.separator+ "DSP"+File.separator + "7506resp.xml";
    		File tmpFile = new File(tmpFileName);
    		DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    		DocumentBuilder builder = factory.newDocumentBuilder();
    	    Document tmpRetDoc = builder.parse(tmpFile);	
        	*/
        	
        	/*
        	String tmpRet = "<ATSYH>"+
    "	<TransResp>"+
    "		<BankCode></BankCode>"+
    "		<TransType></TransType>"+
    "		<TransSeqID></TransSeqID>"+
    "		<TransParam>"+
    "			<RespCode></RespCode>"+
    "			<RespInfo></RespInfo>"+
    "			<ActArea></ActArea>"+
    "			<ActCur></ActCur>"+
    "			<ActNum></ActNum>"+
    "			<CurrBal></CurrBal>"+
    "			<AvailBal></AvailBal>"+
    "      <FrozenBal></FrozenBal>"+
    "      <ABCCurrentBal></ABCCurrentBal>"+
    "      <LastTranDate></LastTranDate>"+
    "		</TransParam>"+
    "	</TransResp>"+
    "</ATSYH>";
        	
        	
        	StringReader tmpStrReader = new StringReader(tmpRet);
            InputSource inSource = new InputSource(tmpStrReader);
            
    		DocumentBuilderFactory tmpFactory = DocumentBuilderFactory.newInstance();
    		DocumentBuilder tmpDomBuilder = tmpFactory.newDocumentBuilder();
    		Document tmpRetDoc = tmpDomBuilder.parse(inSource);
    		
    	    
    		Element rootElement = tmpRetDoc.getDocumentElement();
    		DomHelper.setSingleElementInnerText(tmpRetDoc, rootElement, "BankCode", p_req.bankCode);
    		DomHelper.setSingleElementInnerText(tmpRetDoc, rootElement, "TransType", p_req.transType);
    		DomHelper.setSingleElementInnerText(tmpRetDoc, rootElement, "TransSeqID", p_req.transSeqID);
    		
    		DomHelper.setSingleElementInnerText(tmpRetDoc, rootElement, "RespCode", respCode);
    		DomHelper.setSingleElementInnerText(tmpRetDoc, rootElement, "RespInfo", respInfo);
    		DomHelper.setSingleElementInnerText(tmpRetDoc, rootElement, "ActArea", p_req.listReq7506.get(0).actArea);
    		DomHelper.setSingleElementInnerText(tmpRetDoc, rootElement, "ActCur", actCur);
    		DomHelper.setSingleElementInnerText(tmpRetDoc, rootElement, "ActNum", actNum);
    		
    		DomHelper.setSingleElementInnerText(tmpRetDoc, rootElement, "CurrBal", currBal);
    		DomHelper.setSingleElementInnerText(tmpRetDoc, rootElement, "AvailBal", availBal);
    		DomHelper.setSingleElementInnerText(tmpRetDoc, rootElement, "FrozenBal", frozenBal);
    		DomHelper.setSingleElementInnerText(tmpRetDoc, rootElement, "LastTranDate", lastTranDate);
    		
    		return DomHelper.toFormatedXML(tmpRetDoc);
        }
    		*/
}
